home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
By the Book
/
Learn C++ (CodeWarrior)
/
Chap 08.04 - formatter
/
formatter.cp
< prev
next >
Wrap
Text File
|
1995-10-21
|
446b
|
29 lines
#include <iostream.h>
//--------------------------------------- main()
int main()
{
cout << 202 << '\n';
cout.width( 5 );
cout.fill( 'x' );
cout.setf( ios::left, ios::adjustfield );
cout << 202 << '\n';
cout.width( 10 );
cout.fill( '=' );
cout.setf( ios::internal, ios::adjustfield );
cout << -101 << '\n';
cout.width( 10 );
cout.fill( '*' );
cout.setf( ios::right, ios::adjustfield );
cout << "Hello";
return 0;
}